/**
 * hmi 定值区数据 API 请求
 */

import request from "@/utils/request";

const HMI_SETTING_AREA_BASE_URL = "/api/hmi/setting-area";

const HMI_SETTING_AREA_API = {
  /** 获取定值区列表 */
  async fetchSettingAreaList(): Promise<number[]> {
    return request<any, number[]>({
      url: `${HMI_SETTING_AREA_BASE_URL}/list`,
      method: "get",
    });
  },
};

export default HMI_SETTING_AREA_API;
